<?php

use yii\db\Migration;

class m170517_070247_alter_account_record extends Migration
{
    public function up()
    {
        $this->addColumn('{{%account_record}}', 'pay_wxpay', $this->decimal(10,2).' default 0.00 comment \'微信支付金额\'');
        $this->addColumn('{{%account_record}}', 'pay_alipay', $this->decimal(10,2).' default 0.00 comment \'支付宝支付金额\'');
    }

    public function down()
    {
        $this->dropColumn('{{%account_record}}', 'pay_wxpay');
        $this->dropColumn('{{%account_record}}', 'pay_alipay');
    }


}
